<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>作品添加与编辑页设计</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f8f8f8;
            color: #333;
        }
        .container {
            max-width: 414px;
            margin: 20px auto;
            background: white;
            min-height: 100vh;
            position: relative;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        .header {
            display: flex;
            align-items: center;
            padding: 15px;
            border-bottom: 1px solid #f0f0f0;
            position: sticky;
            top: 0;
            background: white;
            z-index: 10;
        }
        .back-button {
            font-size: 18px;
            margin-right: 10px;
        }
        .header-title {
            flex: 1;
            text-align: center;
            font-size: 18px;
            font-weight: 500;
        }
        .header-action {
            font-size: 14px;
            color: #333;
        }
        .content {
            padding: 15px;
            padding-bottom: 70px;
        }
        .activity-info {
            background: #f9f9f9;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
        }
        .activity-title {
            font-size: 16px;
            font-weight: 500;
            margin-bottom: 8px;
        }
        .activity-meta {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: #999;
        }
        .form-group {
            margin-bottom: 20px;
        }
        .form-label {
            font-size: 14px;
            color: #666;
            margin-bottom: 8px;
            display: block;
        }
        .form-input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            box-sizing: border-box;
        }
        .form-textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            box-sizing: border-box;
            min-height: 100px;
            resize: vertical;
        }
        .form-select {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            box-sizing: border-box;
            background-color: white;
        }
        .form-hint {
            font-size: 12px;
            color: #999;
            margin-top: 5px;
        }
        .form-error {
            font-size: 12px;
            color: #f44336;
            margin-top: 5px;
        }
        .upload-box {
            border: 1px dashed #ddd;
            border-radius: 4px;
            padding: 20px;
            text-align: center;
            background: #f9f9f9;
            cursor: pointer;
        }
        .upload-icon {
            font-size: 24px;
            color: #999;
            margin-bottom: 10px;
        }
        .upload-text {
            font-size: 14px;
            color: #666;
        }
        .upload-hint {
            font-size: 12px;
            color: #999;
            margin-top: 5px;
        }
        .preview-image {
            width: 100%;
            height: 150px;
            background: #f0f0f0;
            border-radius: 4px;
            margin-top: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        .preview-remove {
            position: absolute;
            top: 5px;
            right: 5px;
            width: 24px;
            height: 24px;
            background: rgba(0,0,0,0.5);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
        }
        .section-title {
            font-size: 16px;
            font-weight: 500;
            margin: 25px 0 15px;
            padding-bottom: 8px;
            border-bottom: 1px solid #f0f0f0;
        }
        .gallery-upload {
            margin-top: 15px;
        }
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-top: 10px;
        }
        .gallery-item {
            height: 100px;
            background: #f0f0f0;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        .gallery-add {
            height: 100px;
            border: 1px dashed #ddd;
            border-radius: 4px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #999;
            cursor: pointer;
        }
        .gallery-add-icon {
            font-size: 24px;
            margin-bottom: 5px;
        }
        .gallery-add-text {
            font-size: 12px;
        }
        .bottom-bar {
            position: fixed;
            bottom: 0;
            width: 100%;
            max-width: 414px;
            height: 60px;
            background: white;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 15px;
            box-sizing: border-box;
            border-top: 1px solid #f0f0f0;
        }
        .cancel-button {
            padding: 10px 20px;
            font-size: 14px;
            color: #666;
            background: #f0f0f0;
            border-radius: 4px;
            border: none;
        }
        .save-button {
            padding: 10px 20px;
            font-size: 14px;
            color: white;
            background: #333;
            border-radius: 4px;
            border: none;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="back-button">←</div>
            <div class="header-title">添加参赛作品</div>
            <div class="header-action">预览</div>
        </div>
        
        <div class="content">
            <div class="activity-info">
                <div class="activity-title">2023年度最佳员工评选</div>
                <div class="activity-meta">
                    <div>参赛作品: 24</div>
                    <div>截止日期: 12月20日</div>
                </div>
            </div>
            
            <div class="form-group">
                <label class="form-label">姓名</label>
                <input type="text" class="form-input" placeholder="请输入参赛者姓名">
            </div>
            
            <div class="form-group">
                <label class="form-label">部门</label>
                <select class="form-select">
                    <option>请选择部门</option>
                    <option>市场部</option>
                    <option>技术部</option>
                    <option>销售部</option>
                    <option>客服部</option>
                    <option>行政部</option>
                </select>
            </div>
            
            <div class="form-group">
                <label class="form-label">职位</label>
                <input type="text" class="form-input" placeholder="请输入职位">
            </div>
            
            <div class="form-group">
                <label class="form-label">封面照片</label>
                <div class="upload-box">
                    <div class="upload-icon">📷</div>
                    <div class="upload-text">点击上传封面照片</div>
                    <div class="upload-hint">建议尺寸：400×400px，JPG/PNG格式</div>
                </div>
                <div class="preview-image">
                    <div style="color: #999; font-size: 14px;">预览图片</div>
                    <div class="preview-remove">×</div>
                </div>
            </div>
            
            <div class="form-group">
                <label class="form-label">个人简介</label>
                <textarea class="form-textarea" placeholder="请输入个人简介"></textarea>
                <div class="form-hint">简要介绍个人情况和工作经历</div>
            </div>
            
            <div class="form-group">
                <label class="form-label">年度成就</label>
                <textarea class="form-textarea" placeholder="请输入年度成就"></textarea>
                <div class="form-hint">详细描述本年度的工作成果和贡献</div>
            </div>
            
            <div class="section-title">工作展示</div>
            
            <div class="gallery-upload">
                <div class="gallery-grid">
                    <div class="gallery-item">
                        <div style="color: #999; font-size: 12px;">项目图片1</div>
                        <div class="preview-remove">×</div>
                    </div>
                    <div class="gallery-item">
                        <div style="color: #999; font-size: 12px;">项目图片2</div>
                        <div class="preview-remove">×</div>
                    </div>
                    <div class="gallery-add">
                        <div class="gallery-add-icon">+</div>
                        <div class="gallery-add-text">添加图片</div>
                    </div>
                </div>
                <div class="form-hint">最多可上传9张图片，展示工作成果</div>
            </div>
            
            <div class="section-title">联系方式</div>
            
            <div class="form-group">
                <label class="form-label">手机号码</label>
                <input type="tel" class="form-input" placeholder="请输入手机号码">
            </div>
            
            <div class="form-group">
                <label class="form-label">电子邮箱</label>
                <input type="email" class="form-input" placeholder="请输入电子邮箱">
            </div>
        </div>
        
        <div class="bottom-bar">
            <button class="cancel-button">取消</button>
            <button class="save-button">提交</button>
        </div>
    </div>
</body>
</html>